package com.fastwire.carriere.rad.entityVo;

import java.util.Date;

import org.simpleframework.xml.Element;
import org.simpleframework.xml.Root;

import com.fastwire.carriere.rad.entity.RadLog;

/*
 * Creted on 20120225
 * @author: Lei Jun
 */
@Root(name = "RadLog")
public class RadLogVo
{
    @Element(required = false)
    private long index;

    @Element(required = false)
    private String message;

    @Element(required = false)
    private String sysUpTime;

    @Element(required = false)
    private String ipAddr; // FK

    private Date updateTime;

    public RadLogVo()
    {

    }

    public RadLogVo(RadLog log)
    {
        index = log.getIndex();
        message = log.getMessage();
        sysUpTime = log.getSysUpTime();
        ipAddr = log.getIpAddr();
        updateTime = log.getUpdateTime();
    }

    /**
     * @return the index
     */
    public long getIndex()
    {
        return index;
    }

    /**
     * @param index the index to set
     */
    public void setIndex(long index)
    {
        this.index = index;
    }

    /**
     * @return the message
     */
    public String getMessage()
    {
        return message;
    }

    /**
     * @param message the message to set
     */
    public void setMessage(String message)
    {
        this.message = message;
    }

    /**
     * @return the sysUpTime
     */
    public String getSysUpTime()
    {
        return sysUpTime;
    }

    /**
     * @param sysUpTime the sysUpTime to set
     */
    public void setSysUpTime(String sysUpTime)
    {
        this.sysUpTime = sysUpTime;
    }

    /**
     * @return the ipAddr
     */
    public String getIpAddr()
    {
        return ipAddr;
    }

    /**
     * @param ipAddr the ipAddr to set
     */
    public void setIpAddr(String ipAddr)
    {
        this.ipAddr = ipAddr;
    }

    /**
     * @return the updateTime
     */
    public Date getUpdateTime()
    {
        return updateTime;
    }

    /**
     * @param updateTime the updateTime to set
     */
    public void setUpdateTime(Date updateTime)
    {
        this.updateTime = updateTime;
    }

}
